import {CHANGE_MSG} from '../actionTypes'
// import { login } from '../../utils/api'


export function changeMsg(payload){
    return {
        type:CHANGE_MSG,
        payload
    }
}

//登录
/* export function loginAction(data){
    return function(){
      login(data).then(res=>{
          localStorage.setItem()
      }) 
    }
}

mapActionTopor ...{
    return{
        login:(data)=>dispatch(loginAction(data))
    }
} */